<?php

namespace AppBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Manuscript
 *
 * @ORM\Table(name="manuscript")
 * @ORM\Entity(repositoryClass="AppBundle\Repository\ManuscriptRepository")
 */
class Manuscript
{
    /**
     * @var int
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var string
     *
     * @ORM\Column(name="manuscript_title", type="string", length=255, options={"comment"="稿件标题"})
     */
    private $manuscriptTitle;

    /**
     * @var int
     *
     * @ORM\Column(name="status", type="smallint")
     */
    private $status;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="pre_time", type="date", options={"comment":"预计出刊时间"})
     */
    private $preTime;

    /**
     * @var string
     *
     * @ORM\Column(name="deal_received_amount", type="decimal", precision=10, scale=2, options={"comment"="实收金额"})
     */
    private $dealReceivedAmount;

    /**
     * @ORM\ManyToOne(targetEntity="Journal")
     * @ORM\JoinColumn(name="jid",referencedColumnName="id", onDelete="SET NULL")
     */
    private $journal;

    
    /**
     * Get id
     *
     * @return int
     */
    public function getId()
    {
        return $this->id;
    }
    
    /**
     * Set manuscriptTitle
     *
     * @param string $manuscriptTitle
     *
     * @return Manuscript
     */
    public function setManuscriptTitle($manuscriptTitle)
    {
        $this->manuscriptTitle = $manuscriptTitle;

        return $this;
    }

    /**
     * Get manuscriptTitle
     *
     * @return string
     */
    public function getManuscriptTitle()
    {
        return $this->manuscriptTitle;
    }

    /**
     * Set status
     *
     * @param integer $status
     *
     * @return Manuscript
     */
    public function setStatus($status)
    {
        $this->status = $status;

        return $this;
    }

    /**
     * Get status
     *
     * @return int
     */
    public function getStatus()
    {
        return $this->status;
    }

    /**
     * Set preTime
     *
     * @param \DateTime $preTime
     *
     * @return Manuscript
     */
    public function setPreTime($preTime)
    {
        $this->preTime = $preTime;

        return $this;
    }

    /**
     * Get preTime
     *
     * @return \DateTime
     */
    public function getPreTime()
    {
        return $this->preTime;
    }

    /**
     * Set dealReceivedAmount
     *
     * @param string $dealReceivedAmount
     *
     * @return Manuscript
     */
    public function setDealReceivedAmount($dealReceivedAmount)
    {
        $this->dealReceivedAmount = $dealReceivedAmount;

        return $this;
    }

    /**
     * Get dealReceivedAmount
     *
     * @return string
     */
    public function getDealReceivedAmount()
    {
        return $this->dealReceivedAmount;
    }

    /**
     * Set journal
     *
     * @param \AppBundle\Entity\Journal $journal
     *
     * @return Manuscript
     */
    public function setJournal(\AppBundle\Entity\Journal $journal = null)
    {
        $this->journal = $journal;

        return $this;
    }

    /**
     * Get journal
     *
     * @return \AppBundle\Entity\Journal
     */
    public function getJournal()
    {
        return $this->journal;
    }
}
